package com.miukoo.aikao.qpaper.dto;

import com.miukoo.aikao.core.annon.IdEncrypt;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
* <p>
* 试卷考题请求类
* </p>
*
* @author 聪明笨狗
* @since 2020-05-25 17:31
*/
@Setter
@Getter
@ApiModel(value="试卷考题", description="试卷考题")
public class PaperQuestionDto implements Serializable {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "ID", required=true)
    private Long id;

    @ApiModelProperty(value = "试卷ID", required=true)
    @IdEncrypt
    private Long paperId;

    @ApiModelProperty(value = "题目ID", required=true)
    @IdEncrypt
    private Long questionId;

    @ApiModelProperty(value = "题目类型", required=true)
    private Short questionType;

    @ApiModelProperty(value = "是否已答", required=true)
    private Boolean answered;

    @ApiModelProperty(value = "主观答案", required=true)
    private String answer;

    @ApiModelProperty(value = "问题排序", required=true)
    private Integer sort;

    @ApiModelProperty(value = "单题分分值", required=true)
    private Short score;

    @ApiModelProperty(value = "实际得分(主观题)", required=true)
    private Short actualScore;

    @ApiModelProperty(value = "是否答对", required=true)
    private Boolean isRight;

    @ApiModelProperty(value = "题目备注", required=true)
    private String remark;

    @ApiModelProperty(value = "题目coding", required=true)
    private String coding;

    @ApiModelProperty(value = "编程题类型0java,1sql,2html", required=true)
    private String codingType;

    @ApiModelProperty(value = "编程题答案提交类型0在线1git地址提交2上传", required=true)
    private Short codingUploadType;


}
